package ru.arriah.servicedesk.ejb;

import java.util.*;

import javax.ejb.*;
import ru.arriah.servicedesk.bean.*;

public interface OrganizationManagerLocalObject extends EJBLocalObject {
  public Collection<OrganizationBean> selectOrganizations();  
  public Collection<OrganizationBean> selectOrganizations(
    String orderBy,
    String order,     
    String status
  );
  
  public OrganizationBean selectOrganization(int organizationId);
  public void addOrganization(OrganizationBean organizationBean);
  public void updateOrganization(OrganizationBean organizationBean);
  public void deleteOrganization(int organizationId);
  public void restoreOrganization(int organizationId);
  public void addDepartment(DepartmentBean departmentBean);
  public void deleteDepartment(int departmentId);
  public Collection<DepartmentBean> selectDepartments(int organizationId);
  public Collection<DepartmentBean> selectDepartments(
    int organizationId,
    String orderBy,
    String order,
    String status
  );
  public void restoreDepartment(int departmentId);
  public void updateDepartment(DepartmentBean departmentBean);
  public DepartmentBean selectDepartment(
    int departmentId
  );
}
